]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overviewControls: Remove intermediate box
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 29 Jan 2021 14:38:08 +0000 (15:38 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 29 Jan 2021 16:49:52 +0000 (17:49 +0100)
Now that the workspace switcher moved into the view selector, the
box only holds a single child. Cut out the middle man and add that
directly to the parent.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1609>

js/ui/overviewControls.js
js/ui/viewSelector.js

index af420c5289806960895b65ba3f88978b81a642f4..e87c5042a88d3b18c69b960dfaea8051f0053c83 100644 (file)
@@ -85,13 +85,7 @@ class ControlsManager extends St.Widget {
         });
         this.add_actor(this._group);
 
-        const box = new St.BoxLayout({
-            x_expand: true,
-            y_expand: true,
-        });
-        box.add_child(this.viewSelector);
-
-        this._group.add_child(box);
+        this._group.add_child(this.viewSelector);
         this._group.add_actor(this._dashFader);
 
         this.connect('destroy', this._onDestroy.bind(this));
index 5a22cb2152e6d00046f886ecbb4e661b9bdc18b3..6655ed31f6be2c5c535408f61d5161ca8c61c07d 100644 (file)
@@ -241,6 +241,7 @@ var ViewSelector = GObject.registerClass({
         super._init({
             name: 'viewSelector',
             x_expand: true,
+            y_expand: true,
             visible: false,
         });